WindowDo SUB Action Takes control of the program and waits for a button, edit-field, or window event to occur in an open window. Syntax WindowDo currButton%, currEdit% Remarks The WindowDo procedure uses the following arguments. currButton% ----------- An integer that indicates the number of the current button. The current button is that button where the text cursor is located at the time of the call to WindowDo. currEdit% --------- An integer that indicates the number of the current edit field. The current edit field is the edit field where the text cursor is located at the time of the call to WindowDo. If it is 0, it is assumed that the text cursor is not currently in an edit field. If it is nonzero, WindowDo lets the user edit the current edit field. Only buttons and edit fields in the current window are active. If no buttons or edit fields are used in the window, use 0 for both arguments. Once an event takes place, use Dialog(0) to determine which event occurred. Program execution continues after an event occurs. See Also. Dialog Example See the DemoDialog, DemoDialogEZ, DemoResize, DemoScrollBar, and DemoWindow procedures in the code example UIDEMO.BAS for specific usage examples.